package com.felton.springboot.shrio.service.impl;

import com.felton.springboot.shrio.dao.PermissionMapper;
import com.felton.springboot.shrio.entity.Permission;
import com.felton.springboot.shrio.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 类  名：com.felton.springboot.shrio.service.impl.PermissionServiceImpl
 * 类描述：todo
 * 创建人：liurui
 * 创建时间：2020/6/10 15:35
 * 修改人：
 * 修改时间：
 * 修改备注：
 *
 * @author liurui
 * @version 1.0
 */
@Service
public class PermissionServiceImpl implements PermissionService {
    @Autowired
    private PermissionMapper permissionMapper;


    @Override
    public List<Permission> getPermissionListByUserName(String userName) {

        return permissionMapper.getPermissionListByUserName(userName);
    }

    @Override
    public List<Permission> getPermissionListByRoleId(Integer roleId) {

        return permissionMapper.getPermissionListByRoleId(roleId);
    }
}
